package com.ysd.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ysd.entity.Recommend;
import com.ysd.mapper.RecommendConditionMapper;
import com.ysd.service.RecommendConditionService;

@Service
public class RecommendConditionServiceImpl implements RecommendConditionService {

	@Autowired
	private RecommendConditionMapper rcMapper;
	
	@Override
	public List<Recommend> findRecommend(Recommend rend) {
		// TODO Auto-generated method stub
		return rcMapper.getRecommend(rend);
	}

	@Override
	public int getPage(Recommend rend) {
		// TODO Auto-generated method stub
		return rcMapper.getPage(rend);
	}

	@Override
	public int updateRecommend(Recommend recommend) {
		// TODO Auto-generated method stub
		return rcMapper.updateRecommend(recommend);
	}

	@Override
	public int deleteRecommend(int bannerId) {
		// TODO Auto-generated method stub
		return rcMapper.deleteRecommend(bannerId);
	}

}
